import React, { useEffect, useState } from 'react'
import { Button } from 'antd';
import { connect } from 'dva';
// import './outcome.css'
const theProps = (state) => {
    return {
        mapsId: state.maps.mapsId
    }
}
function Download(props) {
    const { mapsId, dispatch } = props;
    const downloadMaps = () => {
        console.log(mapsId)
        dispatch({
            type: 'task/downLoadMaps',
            payload: mapsId
        })
    }
    return (
        <>

            <Button type="primary" onClick={() => downloadMaps()}>
                开始下载maps预测
            </Button>

        </>
    )
}
export default connect(theProps, null)(Download)
